package figuriConcrete;
import figuriAbstracte.*;
public class Square extends Poligon{
	private double length;
	
	public Square(double l)
	{
		this.length=l;
	}
	public double getLength()
	{
		return this.length;
	}
	public double perimeter()
	{
		return 4*this.getLength();
	}
	public double getArea()
	{
		return this.getLength()*this.getLength();
	}
	public String toString()
	{
		return "Lungimea patratului este: "+this.getLength();
	}

}
